
 
 '   T h e r e m i n o   A u t o m a t i o n   d e m o   p r o g r a m 
 
 
 
 '   D e m o n s t r a t i n g   I F ,   E L S E ,   E N D I F   a n d   s y s t e m   B e e p 
 
 
 
 v 1   =   S l o t ( 1 ) 
 
 v 2   =   S l o t ( 2 ) 
 
 
 
 I f   v 1   <   5 0 0 
 
 	 P r i n t   " V 1   i s   l e s s   t h a n   5 0 0 " 
 
 E l s e 
 
 	 I f   v 1   =   5 0 0 
 
 	 	 P r i n t   " V 1   i s   e q u a l   t o   5 0 0 " 
 
 	 E l s e 
 
 	 	 P r i n t   " V 1   i s   m o r e   t h a n   5 0 0 " 
 
 	 E n d I f 
 
 E n d I f 
 
 
 
 I f   v 1   =   v 2 
 
 	 P r i n t   " V 1   i s   e q u a l   t o   V 2 " 
 
 	 B e e p 
 
 E n d I f 
 
 
 
 
 
 ' W A T C H   V 1 
 
 ' W A T C H   S l o t ( 1 ) 
 
 ' E X E C   S l o t   1   =   1 0 0 0   :   S l o t   2   =   1 0 0 0 
 
 